import type { Metadata } from 'next'
import { getDefaultsForSchema } from 'zod-defaults'

import { ModalLayout } from '@/components/ModalPage.layout'
import { ClientCard } from '@/components/cards/client.card'

import { NO_INDEX_PAGE } from '@/constants/seo.constants'

import { clientScheme } from '@/types/client.types'

export const metadata: Metadata = {
	title: 'Создание клиента',
	...NO_INDEX_PAGE
}

export default function NewClientModal() {
	return (
		<ModalLayout>
			<ClientCard
				client_data={getDefaultsForSchema(clientScheme)}
				createMode={true}
			/>
		</ModalLayout>
	)
}
